package ar.fi.uba.fallas2.data;

public class DataException extends Exception {
	private Exception innerException;
	private static final long serialVersionUID = 1L;
	
	public DataException(Exception e) {
		super();
		this.setInnerException(e);
	}

	public void setInnerException(Exception innerException) {
		this.innerException = innerException;
	}

	public Exception getInnerException() {
		return innerException;
	}
	
	public String getMessage() {
		return this.getInnerException().getMessage();
	}
}
